﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using Demo.Infrastructure;

namespace Demo.Web.Controllers
{

    public class HomeController : Demo.Web.Controllers.BaseController
    {
        /// <summary>
        /// 此acion比较特殊，是默认起始页
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            ViewBag.Message = "修改此模板以快速启动你的 ASP.NET MVC 应用程序。";

            return View();
        }

        [Perssions("系统管理", "定义站点邮件1", PerssionType.Verification)]
        public ActionResult About()
        {
            ViewBag.Message = "你的应用程序说明页。";

            return View();
        }

        [Perssions("系统管理", "定义站点邮件", PerssionType.Verification)]
        public ActionResult Contact()
        {
            ViewBag.Message = "你的联系方式页";

            return View();
        }

        [Perssions("系统管理", "定义站点名称", PerssionType.Verification)]
        public ActionResult Test()
        {
            return View();
        }

    }

}
